﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YasharEl.Infrastructure.EntityModel;
using System.Runtime.Serialization;

namespace YasharEl.Infrastructure.Core.Prototype
{
    [Serializable]
    public class MissingRequiredParameterValueException : DomainModelException
    {
        private readonly string parameterKey;

        public string ParameterKey
        {
            get { return parameterKey; }
        }

        public MissingRequiredParameterValueException(string parameterKey)
            : base(string.Format("Missing required parameter value : {0}. Value could not be null or empty.", parameterKey))
        {
            this.parameterKey = parameterKey;
        }

        protected MissingRequiredParameterValueException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}
